﻿<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets  xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
	<CodeSnippet Format="1.0.0">
		<Header>
			<Title>MetaKey</Title>
			<Shortcut>metakey</Shortcut>
			<Description>Declaration Meta.Key and an Attribute for it</Description>
			<Author>Ryan Kramer</Author>
			<SnippetTypes>
				<SnippetType>Expansion</SnippetType>
			</SnippetTypes>
		</Header>
		<Snippet>
			<Declarations>
				<Literal>
					<ID>type</ID>
					<ToolTip>Type of the metadata value</ToolTip>
					<Default>string</Default>
				</Literal>
				<Literal>
					<ID>name</ID>
					<ToolTip>Name of the metadata field</ToolTip>
					<Default>DisplayName</Default>
				</Literal>
			</Declarations>
			<Code Language="csharp">
				<![CDATA[public static readonly Key<$type$> $name$ = new Key<$type$>("$name$");
        public class $name$Attribute : BaseAttribute
        {
            public $name$Attribute($type$ value) : base(value) { }
        }$end$]]>
			</Code>
		</Snippet>
	</CodeSnippet>
</CodeSnippets>